package com.example.job_backend.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Notice {
    private Integer id;
    private String title;
    private String content;
//    @TableField(typeHandler = JacksonTypeHandler.class)
    private String attachments;
    private String status;
    private String publisherId;
    private String publishTime;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Attachment{
        private String name;
        private String url;
    }
}
